﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example04.Otherpage.aspx.cs" Inherits="Chapter15.Example04Otherpage" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Other Page</title>
</head>
<body>
    <p>The X-coordinate is <span id="xco">??</span></p>
    <p>The X-coordinate is <span id="yco">??</span></p>
    <script>
        var coords = window.location.href.split('?')[1].split(',');
        document.getElementById('xco').innerHTML = coords[0];
        document.getElementById('yco').innerHTML = coords[1];
    </script>
</body>
</html>
